#!/bin/sh
echo "running unit tests"
cd "`dirname "$0"`"
source ./settings.sh

cd "$cvs_pear"
php -c "$php_ini"\
 /usr/bin/phpunit\
 --verbose\
 --test-db-dsn "mysql://$unit_db_user:$unit_db_pass@$unit_db_host/$unit_db_name"\
 --test-db-log-rev `date "+%Y%m%d%H"`\
 --test-db-log-info "`date "+%Y-%m-%d %H"`"\
 --log-xml "$log_unittests"\
 PEAR_AllTests AllTests.php

